package com.clw.form;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by Administrator on 2018-03-05.
 */
@Data
public class SaleForm {
    private Integer id;

    @NotEmpty(message = "编号不能为空")
    private String saleNo;

    @NotNull(message = "销售人不能为空")
    private Integer saleUserId;

    @NotNull(message = "客户不能为空")
    private Integer buyerId;

    @NotNull(message = "订单总额不能为空")
    private BigDecimal total;

    private String remark;

    @NotEmpty(message = "明细不能为空")
    private  String detail;
}
